package com.hxzy.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * 文件上传服务
 */
public interface FileUploadService {

    /**
     * 单个图片上传
     * @param file
     * @return
     */
    String uploadImage(MultipartFile file) throws IOException;

    /**
     * 单个图片上传并生成缩略图
     * @param file
     * @return
     */
    String uploadImageAndCrtThumbImage(MultipartFile file) throws IOException;
}
